package cn.edu.scau.cmi.liyetian.singleton;

public class Chairman {
	private static Chairman instance;
	private static String name;
	private Chairman(String str) {
		name = str;
	}
	public static Chairman getInstance(String name) {
		if(instance == null && !name.equals(null)) {
			instance = new Chairman(name);
		}
		return instance;
	}
	public static boolean isExist() {
		if(name == null) {
			return false;
		}
		else {
			return true;
		}
	}
	
	public static String getName() {
		return name;
	}
	public static void setName(String name) {
		Chairman.name = name;
	}
}
